home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 1006 b | 36 lines | [TEXT/GEOL] |
- Item 0303588 30-Oct-87 13:28
-
- From: BIANCHI1 Bianchi, Curt
-
- To: D0542 Productive Tech, Dev, Mark Gilford
-
- cc: MACAPP$ MacApp Interest List
-
- Sub: Response to Custom Scroll Bar…
-
- Mark,
-
- I think about all you can do is override TFrame.TrackAppControl and handle tumb
- scrolling yourself and call INHERITED TrackAppControl for the other part codes.
- Something like this:
-
- BEGIN
- CASE partCode OF
- inThumb:
- BEGIN
- scrollingFrame := TFrame(refCon - 1);
- partCode := TrackControl(aControl, localPt, NIL);
- value := GetCtlValue(aControl);
- {constrain value as desired}
- SetCtlValue(aControl, value);
- scrollingFrame.ScrlToSBars(FALSE);
- TrackAppControl := gNoChanges;
- END;
- OTHERWISE
- TrackAppControl := INHERITED TrackAppControl(...);
- END;
-
- Curt Bianchi
-
-
-